<?php
defined ( 'IN_ADMIN' ) or exit ( 'No permission resources.' );
$show_dialog = 1;
include $this->admin_tpl ( 'header', 'admin' );
?>
<form method="post" name="frmlist" action="">
	<div class="table-list">
		<table width="100%" cellspacing="0">
		  	<thead>
				<tr>
					<th align="left" colspan="6">
						产品介绍管理
						<?php if(empty( $productIntr )){?>
						| 
						<a href="/index.php?m=hchbrowse&c=crud&a=myadd&assort_type_id=<?php echo $productIntrTypeId;?>&browse_id=<?php echo $browseId;?>">
							<em>新增产品介绍</em>
						</a>
						<?php }?>
					</th>
				</tr>
				<tr>
					<th width="30" align="center">&nbsp;</th>
					<th align="center">名称</th>
					<th align="center">标题</th>
					<th align="center">内容摘要</th>
					<th align="center">管理操作</th>
				</tr>
			</thead>
			<?php
				if (is_array ( $productIntr ) && count ( $productIntr ) > 0) {
			?>
			<tr>
				<td align="center" width="35"><input type="checkbox" name="id[]"
					value="<?php echo $productIntr['id']?>"></td>
				<td align="center" width="10%"><?php echo $productIntr['name']?></a></td>
				<td align="center" width="10%"><?php echo $productIntr['title']?></td>
				<td align="center"><?php echo $productIntr['short_content'];?></td>
				<td align="center" width="10%"><a
					href='/index.php?m=hchbrowse&c=crud&a=myedit&id=<?php echo $productIntr['id'] ?>'>编辑</a>
					| <a
					href="/index.php?m=hchbrowse&c=crud&a=myview&id=<?php echo $productIntr['id'] ?>">查看</a>
					| <a
					href="/index.php?m=hchbrowse&c=crud&a=mydelone&id=<?php echo $productIntr['id'] ?>"
					onclick="return confirm('确认删除记录吗？')">删除</a></td>
			</tr>
			<?php
				}else{
			?>
			<tr>
				<td align="center"colspan="5">没有查询到数据。</td>
			</tr>
			<?php }?>
		  	<thead>
				<tr>
					<th align="left" colspan="6">
						团队介绍管理
						<?php if(empty( $teamInfo )){?>
						| 
						<a href="/index.php?m=hchbrowse&c=crud&a=myadd&assort_type_id=<?php echo $teamInfoTpyeId;?>&browse_id=<?php echo $browseId;?>">
							<em>新增团队介绍</em>
						</a>
						<?php }?>
					</th>
				</tr>
				<tr>
					<th width="30" align="center">&nbsp;</th>
					<th align="center">名称</th>
					<th align="center">标题</th>
					<th align="center">内容摘要</th>
					<th align="center">管理操作</th>
				</tr>
			</thead>
			<?php
				if (is_array ( $teamInfo ) && count ( $teamInfo ) > 0) {
			?>
			<tr>
				<td align="center" width="35"><input type="checkbox" name="id[]"
					value="<?php echo $projects['id']?>"></td>
				<td align="center" width="10%"><?php echo $teamInfo['name']?></a></td>
				<td align="center" width="10%"><?php echo $teamInfo['title']?></td>
				<td align="center"><?php echo $teamInfo['short_content'];?></td>
				<td align="center" width="10%"><a
					href='/index.php?m=hchbrowse&c=crud&a=myedit&id=<?php echo $teamInfo['id'] ?>'>编辑</a>
					| <a
					href="/index.php?m=hchbrowse&c=crud&a=myview&id=<?php echo $teamInfo['id'] ?>">查看</a>
					| <a
					href="/index.php?m=hchbrowse&c=crud&a=mydelone&id=<?php echo $teamInfo['id'] ?>"
					onclick="return confirm('确认删除记录吗？')">删除</a></td>
			</tr>
			<?php
				}else{
			?>
			<tr>
				<td align="center"colspan="5">没有查询到数据。</td>
			</tr>
			<?php }?>
			<thead>
				<tr>
					<th align="left" colspan="6">
						发展历史信息管理
						<?php if(empty($history)){?>
						| 
						<a href="/index.php?m=hchbrowse&c=crud&a=myadd&assort_type_id=<?php echo $historyTpyeId;?>&browse_id=<?php echo $browseId;?>">
							<em>新增发展历史信息</em>
						</a>
						<?php }?>
					</th>
				</tr>
				<tr>
					<th width="30" align="center">&nbsp;</th>
					<th align="center">名称</th>
					<th align="center">标题</th>
					<th align="center">内容摘要</th>
					<th align="center">管理操作</th>
				</tr>
			</thead>
			<?php
				if (is_array ( $history ) && count ( $history ) > 0) {
			?>
			<tr>
				<td align="center" width="35"><input type="checkbox" name="id[]"
					value="<?php echo $history['id']?>"></td>
				<td align="center" width="10%"><?php echo $history['name']?></a></td>
				<td align="center" width="10%"><?php echo $history['title']?></td>
				<td align="center"><?php echo $history['short_content'];?></td>
				<td align="center" width="10%"><a
					href='/index.php?m=hchbrowse&c=crud&a=myedit&id=<?php echo $history['id'] ?>'>编辑</a>
					| <a
					href="/index.php?m=hchbrowse&c=crud&a=myview&id=<?php echo $history['id'] ?>">查看</a>
					| <a
					href="/index.php?m=hchbrowse&c=crud&a=mydelone&id=<?php echo $history['id'] ?>"
					onclick="return confirm('确认删除记录吗？')">删除</a></td>
			</tr>
			<?php
				}else{
			?>
			<tr>
				<td align="center"colspan="5">没有查询到数据。</td>
			</tr>
			<?php }?>
			<thead>
				<tr>
					<th align="left" colspan="6">
						公司报道管理
						<?php if(empty($report)){?>
						| 
						<a href="/index.php?m=hchbrowse&c=crud&a=myadd&assort_type_id=<?php echo $reportTpyeId;?>&browse_id=<?php echo $browseId;?>">
							<em>新增公司报道</em>
						</a>
						<?php }?>
					</th>
				</tr>
				<tr>
					<th width="30" align="center">&nbsp; </th>
					<th align="center">名称</th>
					<th align="center">标题</th>
					<th align="center">内容摘要</th>
					<th align="center">管理操作</th>
				</tr>
			</thead>
			<?php
			if (is_array ( $report ) && count ( $report ) > 0) {
			?>
          	<tr>
				<td align="center" width="35"><input type="checkbox" name="id[]"
					value="<?php echo $report['id']?>"></td>
				<td align="center" width="10%"><?php echo $report['name']?></a></td>
				<td align="center" width="10%"><?php echo $report['title']?></td>
				<td align="center"><?php echo $report['short_content'];?></td>
				<td align="center" width="10%"><a
					href='/index.php?m=hchbrowse&c=crud&a=myedit&id=<?php echo $report['id'] ?>'>编辑</a>
					| <a
					href="/index.php?m=hchbrowse&c=crud&a=myview&id=<?php echo $report['id'] ?>">查看</a>
					| <a
					href="/index.php?m=hchbrowse&c=crud&a=mydelone&id=<?php echo $report['id'] ?>"
					onclick="return confirm('确认删除记录吗？')">删除</a></td>
			</tr>
			<?php
				}else{
			?>
			<tr>
				<td align="center"colspan="5">没有查询到数据。</td>
			</tr>
			<?php }?>
			<thead>
				<tr>
					<th align="left" colspan="6">
						商业计划书管理
						<?php if(empty($bussinessPlan)){?>
						| 
						<a href="/index.php?m=hchbrowse&c=crud&a=myadd&assort_type_id=<?php echo $bussinessPlanTpyeId;?>&browse_id=<?php echo $browseId;?>">
							<em>新增商业计划书</em>
						</a>
						<?php }?>
					</th>
				</tr>
				<tr>
					<th width="30" align="center">&nbsp; </th>
					<th align="center">名称</th>
					<th align="center">标题</th>
					<th align="center">内容摘要</th>
					<th align="center">管理操作</th>
				</tr>
			</thead>
			<?php
			if (is_array ( $bussinessPlan ) && count ( $bussinessPlan ) > 0) {
			?>
          	<tr>
				<td align="center" width="35"><input type="checkbox" name="id[]"
					value="<?php echo $bussinessPlan['id']?>"></td>
				<td align="center" width="10%"><?php echo $bussinessPlan['name']?></a></td>
				<td align="center" width="10%"><?php echo $bussinessPlan['title']?></td>
				<td align="center"><?php echo $bussinessPlan['short_content'];?></td>
				<td align="center" width="10%"><a
					href='/index.php?m=hchbrowse&c=crud&a=myedit&id=<?php echo $bussinessPlan['id'] ?>'>编辑</a>
					| <a
					href="/index.php?m=hchbrowse&c=crud&a=myview&id=<?php echo $bussinessPlan['id'] ?>">查看</a>
					| <a
					href="/index.php?m=hchbrowse&c=crud&a=mydelone&id=<?php echo $bussinessPlan['id'] ?>"
					onclick="return confirm('确认删除记录吗？')">删除</a></td>
			</tr>
			<?php
				}else{
			?>
			<tr>
				<td align="center"colspan="5">没有查询到数据。</td>
			</tr>
			<?php }?>
			<thead>
				<tr>
					<th align="left" colspan="6">
						常见问答管理
						<?php if(empty($qa)){?>
						| 
						<a href="/index.php?m=hchbrowse&c=crud&a=myadd&assort_type_id=<?php echo $qaTpyeId;?>&browse_id=<?php echo $browseId;?>">
							<em>新增常见问答</em>
						</a>
						<?php }?>
					</th>
				</tr>
				<tr>
					<th width="30" align="center">&nbsp; </th>
					<th align="center">名称</th>
					<th align="center">标题</th>
					<th align="center">内容摘要</th>
					<th align="center">管理操作</th>
				</tr>
			</thead>
			<?php
			if (is_array ( $qa ) && count ( $qa ) > 0) {
			?>
          	<tr>
				<td align="center" width="35"><input type="checkbox" name="id[]"
					value="<?php echo $qa['id']?>"></td>
				<td align="center" width="10%"><?php echo $qa['name']?></a></td>
				<td align="center" width="10%"><?php echo $qa['title']?></td>
				<td align="center"><?php echo $qa['short_content'];?></td>
				<td align="center" width="10%"><a
					href='/index.php?m=hchbrowse&c=crud&a=myedit&id=<?php echo $qa['id'] ?>'>编辑</a>
					| <a
					href="/index.php?m=hchbrowse&c=crud&a=myview&id=<?php echo $qa['id'] ?>">查看</a>
					| <a
					href="/index.php?m=hchbrowse&c=crud&a=mydelone&id=<?php echo $qa['id'] ?>"
					onclick="return confirm('确认删除记录吗？')">删除</a></td>
			</tr>
			<?php
				}else{
			?>
			<tr>
				<td align="center"colspan="5">没有查询到数据。</td>
			</tr>
			<?php }?>
			<tr>
				<td colspan="10">
					<!-- <input type="submit" class="button"	name="submitdel" onClick="doCheck()" value="审核" /> -->
					<input type="submit" class="button"	name="submitdel" onClick="doDel()" value="删除" />
				</td>
			</tr>
			</tbody>
		</table>
	</div>
</form>
</body>
<script type="text/javascript">
function doDel(){
	if(confirm('确认删除记录吗？')){
		document.frmlist.action='/index.php?m=hchbrowse&c=crud&a=mydel';
		submitchk.submit();
	}
}
function doCheck(){
	if(confirm('确认选择记录全部审核通过吗？')){
		document.frmlist.action='/index.php?m=hchbrowse&c=crud&a=myCheck';
		submitchk.submit();
	}
}
</script>
</html>